﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TicketSeller
{
    [Serializable]
    class ClusterMessage
    {
        public ServerNode Node { set; get; }

        public MessageType Type { set; get; }

        public ClusterMessage()
        {

        }

        public ClusterMessage(ServerNode node)
        {
            Node = node;
        }

        public ClusterMessage(MessageType type)
        {
            Type = type;
        }

        public ClusterMessage( ServerNode node, MessageType type) : this(node)
        {
            Type = type;
        }
    }

    [Serializable]
    enum MessageType
    {
        INTRODUCTION,
        UPDATE_REQUEST,
        UPDATE,
        REPLICATION
    }
}
